package com.freshcity.component
{
	import fl.controls.CheckBox;
	import fl.controls.listClasses.ICellRenderer;
	import fl.controls.listClasses.ListData;

	import flash.events.MouseEvent;

	public class CheckBoxRenderer extends CheckBox implements ICellRenderer
	{
		public var _listData:ListData;
		public var _data:Object;
		public var cb:CheckBox;

		public function CheckBoxRenderer()
		{
			super();
		}

		public function set listData(newListData:ListData):void
		{
			_listData=newListData;
		}

		public function get listData():ListData
		{
			return _listData;
		}

		public function set data(newData:Object):void
		{
			_data=newData;
			label="View";
			addEventListener(MouseEvent.CLICK, clicker)

		}

		public function get data():Object
		{
			return _data;

		}

		private function clicker(evt:MouseEvent):void
		{
			/*
			if (evt.target.root.Datagrid.selectedIndex == 2)
			{

			}
			*/
		}
	}
}
